package com.dao;

import com.entity.Message;

import java.sql.SQLException;
import java.util.List;

/**
 * @author 羡羡
 */
public interface MessageDao {
    /**
     * 添加留言
     * @param me
     * @return
     * @throws SQLException
     */
    public int addMessage(Message me) throws SQLException;

    /**
     * 查询留言
     * @return
     * @throws SQLException
     */
    public List search() throws SQLException;

    /**
     * 删除留言
     * @param id
     * @return
     * @throws SQLException
     */
    public int deleteMessage(int id) throws SQLException;

}
